<template>
	<view class="page" :style="themeColor">
		<view class="flex benben-position-layout flex flex-wrap align-center my_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub my_fd0_0'>
				<view class='flex flex-wrap align-center my_fd0_0_c0'>
				</view>
				<view class='flex flex-wrap align-center'>
					<text class='my_fd0_0_c1_c0'>个人中心</text>
				</view>
				<view class='flex flex-wrap align-center justify-end my_fd0_0_c2'>
					<image class='my_fd0_0_c2_c0' :src='STATIC_URL+"85.png"' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/wode/myNew/myNew`"></image>
					<benben-message-num class='my_fd0_0_c2_c1' :message-num="newsMarker.unread_nums" size='24' color='#fff' background-color='red'>
					</benben-message-num>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<!---flex布局flex布局开始-->
		<view class="flex benben-flex-layout flex-wrap align-center my_flex_1" @tap.stop="handleJumpDiy"
			data-type="navigateTo" :data-url="`/pages/wode/myInformation/myInformation`">
			<image class='my_fd1_0' v-if="isLogin===true" :src='dataDetails.head_img' mode="aspectFill"></image>
			<image class='my_fd1_0' v-else :src='STATIC_URL+"86.png"' mode="aspectFill"></image>
			<text class='my_fd1_1' v-if="isLogin===false">请登录</text>
			<text class='my_fd1_1_1'
				v-if="isLogin===true">{{dataDetails.user_nickname}}</text>
		</view>
		<!---flex布局flex布局结束-->
		<!---flex布局flex布局开始-->
		<view class="flex benben-flex-layout flex-wrap align-center my_flex_2">
			<view class='flex flex-wrap align-center flex-sub my_fd2_0' @tap.stop="handleJumpDiy" data-type="navigateTo"
				:data-url="`/pages/wode/order/order`">
				<text class='my_fd2_0_c0'>商城订单</text>
			</view>
			<view class='flex flex-wrap align-center flex-sub my_fd2_1' @tap.stop="handleJumpDiy" data-type="navigateTo"
				:data-url="`/pages/wode/leaseOrders/leaseOrders`">
				<text class='my_fd2_1_c0'>租赁订单</text>
			</view>
		</view>
		<!---flex布局flex布局结束-->
		<!---flex布局flex布局开始-->
		<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout my_flex_3">
			<view class='flex flex-direction flex-wrap align-stretch my_fd3_0'>
				<view v-if="weixin_show" class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/wode/myMoney/myMoney`">
					<image class='my_fd3_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"159.png"'></image>
					<view class='flex flex-wrap align-center justify-between flex-sub my_fd3_0_c0_c1'>
						<text class='my_fd3_0_c0_c1_c0'>我的钱包</text>
						<image class='my_fd3_0_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"87.png"'></image>
					</view>
				</view>
				<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/wode/myCollection/myCollection`">
					<image class='my_fd3_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"4.png"'></image>
					<view class='flex flex-wrap align-center justify-between flex-sub my_fd3_0_c0_c1'>
						<text class='my_fd3_0_c0_c1_c0'>我的收藏</text>
						<image class='my_fd3_0_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"87.png"'></image>
					</view>
				</view>
				<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/wode/footprint/footprint`">
					<image class='my_fd3_0_c1_c0' mode="aspectFit" :src='STATIC_URL+"5.png"'></image>
					<view class='flex flex-wrap align-center justify-between flex-sub my_fd3_0_c1_c1'>
						<text class='my_fd3_0_c1_c1_c0'>我的足迹</text>
						<image class='my_fd3_0_c1_c1_c1' mode="aspectFit" :src='STATIC_URL+"87.png"'></image>
					</view>
				</view>
				<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/wode/addressManagement/addressManagement`">
					<image class='my_fd3_0_c2_c0' mode="aspectFit" :src='STATIC_URL+"6.png"'></image>
					<view class='flex flex-wrap align-center justify-between flex-sub my_fd3_0_c2_c1'>
						<text class='my_fd3_0_c2_c1_c0'>地址管理</text>
						<image class='my_fd3_0_c2_c1_c1' mode="aspectFit" :src='STATIC_URL+"87.png"'></image>
					</view>
				</view>
				<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/wode/InviteFriends/InviteFriends`">
					<image class='my_fd3_0_c3_c0' mode="aspectFit" :src='STATIC_URL+"7.png"'></image>
					<view class='flex flex-wrap align-center justify-between flex-sub my_fd3_0_c3_c1'>
						<text class='my_fd3_0_c3_c1_c0'>邀请好友</text>
						<image class='my_fd3_0_c3_c1_c1' mode="aspectFit" :src='STATIC_URL+"87.png"'></image>
					</view>
				</view>
				<view v-if="weixin_show" class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/wode/myTeam/promotionTeam`">
					<image class='my_fd3_0_c4_c0' mode="aspectFit" :src='STATIC_URL+"160.png"'></image>
					<view class='flex flex-wrap align-center justify-between flex-sub my_fd3_0_c4_c1'>
						<text class='my_fd3_0_c4_c1_c0'>我的团队</text>
						<image class='my_fd3_0_c4_c1_c1' mode="aspectFit" :src='STATIC_URL+"87.png"'></image>
					</view>
				</view>
				<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/homepage/platformCustomerService/platformCustomerService`">
					<image class='my_fd3_0_c4_c0' mode="aspectFit" :src='STATIC_URL+"8.png"'></image>
					<view class='flex flex-wrap align-center justify-between flex-sub my_fd3_0_c4_c1'>
						<text class='my_fd3_0_c4_c1_c0'>联系客服</text>
						<image class='my_fd3_0_c4_c1_c1' mode="aspectFit" :src='STATIC_URL+"87.png"'></image>
					</view>
				</view>
				<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/xtsz/system/system`">
					<image class='my_fd3_0_c5_c0' mode="aspectFit" :src='STATIC_URL+"9.png"'></image>
					<view class='flex flex-wrap align-center justify-between flex-sub my_fd3_0_c5_c1'>
						<text class='my_fd3_0_c5_c1_c0'>系统设置</text>
						<image class='my_fd3_0_c5_c1_c1' mode="aspectFit" :src='STATIC_URL+"87.png"'></image>
					</view>
				</view>
			</view>
		</view>
		<!---flex布局flex布局结束-->


	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},


		data() {
			return {
				"dataDetails": {
					"invite_code": "",
					"address": "",
					"address_code": "",
					"address_citycode": "",
					"id": "",
					"lastid": "",
					"user_nickname": "",
					"mobile": "",
					"user_name": "",
					"head_img": "",
					"birthday": "",
					"is_finger": "",
					"user_money": "",
					"freeze_money": "",
					"withdrawal_money": "",
					"score": "",
					"empirical": "",
					"invoice_title": "",
					"invoice_company_title": "",
					"total_consumption_money": "",
					"sex": "",
					"create_time": "",
					"phone": "",
					"online": "",
					"_mobile": "",
					"coupon": "",
					"age": "",
					"collection_count": "",
					"browse_count": "",
					"certified": "",
					"invite": []
				},
				"cornerMarker": {
					"no_pay": "",
					"deliver": "",
					"receiv": "",
					"refund": "",
					"evaluate": ""
				},
				"newsMarker": {
					"carts": "",
					"article": "",
					"message": "",
					"all": "",
					"orders": ""
				},
				"user_name": false,
				"weixin_show": false,
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			isLogin() {
				return this.$store.state.token == '' ? false : true;
			},
			userInfo: {
				get() {
					return this.$store.state.userInfo
				},
				set() {
					this.$store.commit('updateUserInfo', value)
				},
			}
		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.is_loginFunc();
			this.isShow_weixin();
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			isShow_weixin() {
				if (this.isLogin == true) {
					let appVersion = '';
					// #ifdef APP-PLUS
					plus.runtime.getProperty(plus.runtime.appid, (widgetInfo) => {
					  appVersion = widgetInfo.versionCode
					})
					// #endif
					this.$api.post(global.apiUrls.post64547dcf18b52, {
						app_version: appVersion ? appVersion : 100,
						type: uni.getSystemInfoSync().platform == 'android' ? 'android' : 'ios'
					}).then(res => {
						// console.log(res);
						if (res.data.code == 1) {
							this.weixin_show = false;
						} else {
							this.weixin_show = true;
						}
					})
				}
			},
			//是否登录
			async is_loginFunc() {
				if (this.isLogin === true) {
					//请求方法
					//数据验证

					let datadataDetails = await this.$api.post(global.apiUrls.post64366f0e3b620, {
						user_id: this.userInfo.id
					});
					if (datadataDetails.data.code != 1) {
						this.$message.info(datadataDetails.data.msg);
						return
					}
					let infodataDetails = datadataDetails.data;
					this.dataDetails = infodataDetails.data

					//请求方法
					//数据验证

					let datanewsMarker = await this.$api.post(global.apiUrls.post643915f22d9ed, {
						
					});
					if (datanewsMarker.data.code != 1) {
						this.$message.info(datanewsMarker.data.msg);
						return
					}
					let infonewsMarker = datanewsMarker.data;
					this.newsMarker = infonewsMarker.data
				}
				if (this.isLogin === false) {
					this.newsMarker.unread_nums = 0;
					return
				}
				return
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: url(~@/static/images/1.png) no-repeat, rgba(255, 255, 255, 1);
		background-size: 100% auto !important;
	}

	.my_flex_0 {
		background: url(~@/static/images/1.png) no-repeat;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.my_fd0_0_c2_c1 {
		position: absolute;
		top: -10rpx;
		right: -12rpx;
	}

	.my_fd0_0_c2_c0 {
		width: 40rpx;
		height: 40rpx;
	}

	.my_fd0_0_c2 {
		width: 200rpx;
		position: relative;
	}

	.my_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #FFFFFF;
	}

	.my_fd0_0_c0 {
		width: 200rpx;
	}

	.my_fd0_0 {
		padding: 0rpx 34rpx 0rpx 34rpx;
	}

	.my_flex_1 {
		padding: 27rpx 32rpx 24rpx 32rpx;
	}

	.my_fd1_1_1 {
		line-height: 56rpx;
		font-size: 36rpx;
		font-weight: 700;
		color: #FFFFFF;
		margin: 0rpx 0rpx 0rpx 16rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		max-width: 400rpx;
	}

	.my_fd1_1 {
		line-height: 56rpx;
		font-size: 36rpx;
		font-weight: 700;
		color: #FFFFFF;
		margin: 0rpx 0rpx 0rpx 16rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		max-width: 400rpx;
	}

	.my_fd1_0 {
		width: 120rpx;
		height: 120rpx;
		border-radius: 60rpx 60rpx 60rpx 60rpx;
	}

	.my_flex_2 {
		margin: 16rpx 16rpx 0rpx 16rpx;
	}

	.my_fd2_1_c0 {
		color: #9D553A;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 36rpx;
	}

	.my_fd2_1 {
		background: url(~@/static/images/3.png) no-repeat, #eee;
		margin: 8rpx 8rpx 0rpx 8rpx;
		background-size: 100% auto !important;
		padding: 42rpx 0rpx 42rpx 30rpx;
		border-radius: 8rpx;
		overflow: hidden;
	}

	.my_fd2_0_c0 {
		color: #435BA1;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 36rpx;
	}

	.my_fd2_0 {
		background: url(~@/static/images/2.png) no-repeat, #eee;
		margin: 8rpx 8rpx 0rpx 8rpx;
		background-size: 100% auto !important;
		padding: 42rpx 0rpx 42rpx 30rpx;
		overflow: hidden;
		border-radius: 8rpx;
	}

	.my_flex_3 {
		padding: 0rpx 32rpx 40rpx 32rpx;
	}

	.my_fd3_0_c5_c1_c1 {
		width: 15rpx;
		height: 26rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.my_fd3_0_c5_c1_c0 {
		font-size: 28rpx;
		font-weight: 700;
		color: #333333;
		line-height: 40rpx;
	}

	.my_fd3_0_c5_c1 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.my_fd3_0_c5_c0 {
		width: 40rpx;
		height: 40rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.my_fd3_0_c4_c1_c1 {
		width: 15rpx;
		height: 26rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.my_fd3_0_c4_c1_c0 {
		font-size: 28rpx;
		font-weight: 700;
		color: #333333;
		line-height: 40rpx;
	}

	.my_fd3_0_c4_c1 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.my_fd3_0_c4_c0 {
		width: 40rpx;
		height: 40rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.my_fd3_0_c3_c1_c1 {
		width: 15rpx;
		height: 26rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.my_fd3_0_c3_c1_c0 {
		font-size: 28rpx;
		font-weight: 700;
		color: #333333;
		line-height: 40rpx;
	}

	.my_fd3_0_c3_c1 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.my_fd3_0_c3_c0 {
		width: 40rpx;
		height: 40rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.my_fd3_0_c2_c1_c1 {
		width: 15rpx;
		height: 26rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.my_fd3_0_c2_c1_c0 {
		font-size: 28rpx;
		font-weight: 700;
		color: #333333;
		line-height: 40rpx;
	}

	.my_fd3_0_c2_c1 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.my_fd3_0_c2_c0 {
		width: 40rpx;
		height: 40rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.my_fd3_0_c1_c1_c1 {
		width: 15rpx;
		height: 26rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.my_fd3_0_c1_c1_c0 {
		font-size: 28rpx;
		font-weight: 700;
		color: #333333;
		line-height: 40rpx;
	}

	.my_fd3_0_c1_c1 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.my_fd3_0_c1_c0 {
		width: 40rpx;
		height: 40rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.my_fd3_0_c0_c1_c1 {
		width: 15rpx;
		height: 26rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.my_fd3_0_c0_c1_c0 {
		font-size: 28rpx;
		font-weight: 700;
		color: #333333;
		line-height: 40rpx;
	}

	.my_fd3_0_c0_c1 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.my_fd3_0_c0_c0 {
		width: 40rpx;
		height: 40rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.my_fd3_0 {
		background: #fff;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background-size: 100% auto !important;
		margin: 16rpx 0rpx 0rpx 0rpx;
	}
</style>